<% title "Pages" %>

<table>
  <tr>
    <th>Parent</th>
    <th>Name</th>
    <th>Content</th>
  </tr>
  <% for page in @pages %>
    <tr>
      <td><%=h page.parent_id %></td>
      <td><%=h page.name %></td>
      <td><%=h page.content %></td>
      <td><%= link_to "Show", page %></td>
      <td><%= link_to "Edit", edit_page_path(page) %></td>
      <td><%= link_to "Destroy", page, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

<p><%= link_to "New Page", new_page_path %></p>
